Computing the diameter polynomially faster than APSP
نویسنده
چکیده
We present a new randomized algorithm for computing the diameter of a weighted directed graph. The algorithm runs in Õ(Mn 2+3)/(ω+1)) time, where ω < 2.376 is the exponent of fast matrix multiplication, n is the number of vertices of the graph, and the edge weights are integers in {−M, . . . , 0, . . . ,M}. For bounded integer weights the running time is O(n) and if ω = 2+ o(1) it is Õ(n). This is the first algorithm that computes the diameter of an integer weighted directed graph polynomially faster than any known All-Pairs Shortest Paths (APSP) algorithm. For bounded integer weights, the fastest algorithm for APSP runs in O(n) time for the present value of ω and runs in Õ(n) time if ω = 2 + o(1). For directed graphs with positive integer weights in {1, . . . ,M} we obtain a deterministic algorithm that computes the diameter in Õ(Mn) time. This extends a simple Õ(n) algorithm for computing the diameter of an unweighted directed graph to the positive integer weighted setting and is the first algorithm in this setting whose time complexity matches that of the fastest known Diameter algorithm for undirected graphs. The diameter algorithms are consequences of a more general result. We construct algorithms that for any given integer d, report all ordered pairs of vertices having distance at most d. The diameter can therefore be computed using binary search for the smallest d for which all pairs are reported.
منابع مشابه
Subcubic Equivalences Between APSP, Co-Diameter, and Other Complementary Problems∗†
Despite persistent effort, there is no known technique for obtaining super-linear lower bounds for the computational complexity of the problems in P. Vassilevska Williams and Williams [38] introduce a fruitful approach to advance a better understanding of the computational complexity of the problems in P. In particular, they consider All Pairs Shortest Paths (APSP) and other fundamental problem...
متن کاملApproximation of Distances and Shortest Paths in the Broadcast Congest Clique
We study the broadcast version of the CONGEST-CLIQUE model of distributed computing [8, 22, 25]. In this model, in each round, any node in a network of size n can send the same message (i.e. broadcast a message) of limited size to every other node in the network. Nanongkai presented in [STOC’14 [25]] a randomized (2 + o(1))-approximation algorithm to compute all pairs shortest paths (APSP) in t...
متن کاملNew Parameterized Algorithms for APSP in Directed Graphs
All Pairs Shortest Path (APSP) is a classic problem in graph theory. While for general weighted graphs there is no algorithm that computes APSP in O(n3−ε) time (ε > 0), by using fast matrix multiplication algorithms, we can compute APSP in O(n logn) time (ω < 2.373) for undirected unweighted graphs, and in O(n2.5302) time for directed unweighted graphs. In the current state of matters, there is...
متن کاملExternal Memory Algorithms for Diameter and All-Pairs Shortest-Paths on Sparse Graphs
We provide I/O-efficient algorithms for diameter and allpairs shortest-paths (APSP) on undirected graphs G(V,E). For general non-negative edge weights and E/V = o(B/ log V ) our approaches are the first to achieve o(V ) I/Os. We also show that unweighted APSP can be solved with just O(V · sort(E)) I/Os; these approaches require O(V ) space. For diameter computations we additionally provide I/Os...
متن کاملA note on equivalence of anchored and ANOVA spaces; lower bounds
We provide lower bounds for the norms of embeddings between γ-weighted Anchored and ANOVA spaces of s-variate functions with mixed partial derivatives of order one bounded in Lp norm (p ∈ [1,∞]). In particular we show that the norms behave polynomially in s for Finite Order Weights and Finite Diameter Weights if p > 1, and increase faster than any polynomial in s for Product Order-Dependent Wei...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- CoRR
دوره abs/1011.6181 شماره
صفحات -
تاریخ انتشار 2010